package com.pni.game.cards;

public class Card {

	private CardSuit suit;
	private CardRank rank;
	
	public Card(CardRank rank, CardSuit suit){
		this.rank = rank;
		this.suit = suit;
		
	}
	
	@Override
	public String toString(){
		return rank.toString() + " of " + suit.toString();
	}
	
	@Override
	public boolean equals(Object card){
		boolean result = false;
		if((card.toString()).equals(this.toString())){
			result = true;
		}
		return result;
	}
	
	public CardRank getRank(){
		return rank;
	}
	
	public CardSuit getSuit(){
		return suit;
	}
	
}
